/**
 * Created by douxin on 24/09/2016.
 */

import React from 'react';
const storage = window.localStorage;

class JWTTokenCallback extends React.Component {

    componentDidMount() {
        if (this.props.location.query.token) {
            storage.setItem('token', this.props.location.query.token);
        }

        window.location.assign('#/');
    }

    render() {
        return (
            <div className="container">
                <div className="alert alert-info" role="alert">正在登陆，请稍后！</div>
            </div>
        );
    }
}

export default JWTTokenCallback;